#parse("/portal/account/header.html")
<title>用户登录</title>
<link rel="shortcut icon" href="$request.getContextPath()/resources/cws/images/logo.png" />
<link href="$request.getContextPath()/resources/cws/portal/account/css/login.css" rel="stylesheet">
<script type="text/javascript">
if (window.self != window.top) {
	window.top.location.href = "$request.getContextPath()/portal/account/logining";
}
function changeCaptchaCode() {
	var imgSrc = $("#captchaCodeImg")[0];
	imgSrc.src = imgSrc.src + "?date=" + new Date().getTime();
}
function closeErrorMessage() {
	$("#loginError").addClass("hidden");
}
</script>

<div class="login-body container">
	<div>
		<div class="login-switch">
		</div>
	</div>
	<div>
		<div class="head">
			<h1>密码登陆</h1>
		</div>
		<div id="loginError" class="login-error">
		     #if($!shiroLoginFailure)
		     <div class="panel panel-default">
                 <button type="button" class="close" aria-hidden="true" onclick="closeErrorMessage()">&times;</button>
				 <div class="panel-body">
				      <h4><span class="label label-danger">$!shiroLoginFailure</span></h4>
				 </div>
		     </div>
		     #end
		</div>
	</div>
	<div class="body">
		<div class="row">
			<form class="form-horizontal" role="form" action="$request.getContextPath()/portal/account/login" method="post">
				<div class="form-group">
					<label for="firstname" class="col-sm-2 control-label">登陆名</label>
					<div class="col-sm-8">
						<input type="text" class="form-control" name="username" placeholder="请输入用户名/登陆邮箱/手机号码" required autofocus>
					</div>
					<div class="col-sm-2">
					</div>
				</div>
				<div class="form-group">
					<label for="password" class="col-sm-2 control-label">密码</label>
					<div class="col-sm-8">
						<input type="password" class="form-control" name="password" placeholder="请输入密码" required>
					</div>
					<div class="col-sm-2">
					</div>
				</div>
				<div class="form-group">
					<label for="captchaCode" class="col-sm-2 control-label">验证码</label>
					<div class="col-sm-6">
						<input type="text" class="form-control" name="captchaCode" placeholder="请输入验证码" required>
					</div>
					<div class="col-sm-4">
						<img id="captchaCodeImg" src="$request.getContextPath()/rcCaptcha" onclick="changeCaptchaCode()">
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-offset-2 col-sm-10">
						<div class="checkbox">
							<label> <input name="rememberMe" type="checkbox">记住我 </label>
						</div>
					</div>
				</div>
				<div class="form-group" style="margin-top: 30px">
					<div class="col-sm-offset-4 col-sm-8">
						<button type="submit" class="btn btn-lg login-button">登陆</button>
					</div>
					<div class="col-sm-offset-6 col-sm-6">
						<a href="$request.getContextPath()/portal/account/pwd" target="_self" class="btn" type="button" target="_blank">
							<img src="$request.getContextPath()/resources/cws/portal/account/images/forget.jpg" width="26px" height="22px" style="margin-top: -6px;margin-right: -9px;background-color: #ffffff;border-style: none;">
							<span style="margin-bottom: 6px;">忘记密码</span>
						</a>
        			    <a href="$request.getContextPath()/portal/account/reg" target="_self" class="btn" type="button">
							<img src="$request.getContextPath()/resources/cws/portal/account/images/reg.jpg" width="26px" height="22px" style="margin-top: -6px;margin-right: -9px;background-color: #ffffff;border-style: none;">
							<span style="margin-bottom: 6px;">免费注册</span>
						</a>
					</div>
					<div class="col-sm-offset-5 col-sm-7">
						<a href="#" target="_self" class="btn" type="button" target="_blank">
							<img src="$request.getContextPath()/resources/cws/portal/account/images/qq.jpg" width="20px" height="20px" style="margin-top: -8px;margin-right: -6px;background-color: #ffffff;border-style: none;">
							<span style="margin-bottom: 6px;">QQ登录</span>
						</a>
						<a href="#" target="_self" class="btn" type="button">
							<img src="$request.getContextPath()/resources/cws/portal/account/images/wexin.jpg" width="26px" height="22px" style="margin-top: -8px;margin-right: -9px;background-color: #ffffff;border-style: none;">
							<span style="margin-bottom: 6px;">微信登录</span>
						</a>
						<a href="#" target="_self" class="btn" type="button">
							<img src="$request.getContextPath()/resources/cws/portal/account/images/weibo.jpg" width="20px" height="20px" style="margin-top: -8px;margin-right: -6px;background-color: #ffffff;border-style: none;">
							<span style="margin-bottom: 6px;">微博登录</span>
						</a>
					</div>
				</div>
			</form>
		</div>
	</div>
</div>
#parse("/portal/account/footer.html")
